package com.ll.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ll.common.utils.PageUtils;
import com.ll.gulimall.product.entity.SpuInfoEntity;
import com.ll.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author liliang
 * @email liliang@gmail.com
 * @date 2020-07-30 23:16:45
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void save(SpuSaveVo vo);

    void saveBaseSupInfo(SpuInfoEntity supInfo);

    PageUtils findBycondition(Map<String, Object> params);

    /**
     * 根据spuId上架商品 同时把数据存储到ES
     * @param spuId
     */
    void up(Long spuId);

    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

